<template>
	<view>
		<!-- 监控超出弹窗 -->
		<u-popup :show="chaochuShow" mode='center' round='10' :closeOnClickOverlay="true" :closeable="true" :safeAreaInsetBottom="false"  @close="closePop">
			<view class="gonggongtanchuang2">
				<view class="cont">
					<view>
						已超出监控数量最大限制
					</view>
					<view>
						可咨询客服增加监控数量
					</view>
				</view>
				<view class="btn">
					<view @click="closePop">
						别处看看
					</view>
					<view @click="submit">
						咨询客服
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		name: "PopupJiankongchaochu",
		props: ['chaochuShow','location'],
		data() {
			return {
				
			};
		},
		
		watch:{
			chaochuShow(a,b){
				
			}
		},

		methods: {

			closePop() {
				this.$emit("update:chaochuShow", false)
			},
			submit(){
				uni.$u.http
					.post('/wxapp/WxAppFuFeiSendMsgHandler.ashx', {
						location: this.location,
						ctid:'10915', // 9344为续费申请 9347为会员升级 9348为会员开通 10917是会员但查看次数已用尽 10915 监控企业数量超限
					}).then(rs => {
						this.$emit("update:chaochuShow", false)
						// setTimeout(()=>{
							uni.navigateTo({
								url:'/pagesOne/kefujingli/addkefu'
							})
						// })
					}).catch(err => {
						uni.$u.toast(err.msg);
					})
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>